import request from '@/utils/request'

export function listmovHead(query) {
  return request({
    url: '/material/movHead/list',
    method: 'get',
    params: query
  })
}

export function createmovHead(data) {
  return request({
    url: '/material/movHead/create',
    method: 'post',
    data
  })
}

export function readmovHead(data) {
  return request({
    url: '/material/movHead/get/' + data.id,
    method: 'get'
  })
}

export function updatemovHead(data) {
  return request({
    url: '/material/movHead/update',
    method: 'post',
    data
  })
}

export function deletemovHead(data) {
  return request({
    url: '/material/movHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
